package com.seng.resourcetycoon.event;

import com.seng.resourcetycoon.core.enums.ResourceType;
import javafx.event.Event;
import javafx.event.EventType;

public class ResourceCountChangeEvent extends Event {

    private final ResourceType resourceType;
    private final int delta;

    public  static  final  EventType<ResourceCountChangeEvent> ANY = new EventType<>(Event.ANY, "RESOURCE_COUNT_CHANGE");

    public ResourceCountChangeEvent(ResourceType resourceType, int delta) {
        super(ANY);
        this.resourceType = resourceType;
        this.delta = delta;
    }

    public ResourceType getResourceType() {
        return resourceType;
    }

    public int getDelta() {
        return delta;
    }
}
